﻿<%@ Page Language="C#" AutoEventWireup="true" Codebehind="ListTotalPositionLog.aspx.cs"
    Inherits="LabMS.Web.LabPersonnel.ListTotalPositionLog" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>岗位日志汇总列表</title>
    <link type="text/css" rel="stylesheet" href="../style/screen.css" />
    <!--[if lte IE 6]>
    <link type="text/css" rel="stylesheet" href="../style/ie6.css" />
    <![endif]-->
    <!--[if lte IE 7]>
    <link type="text/css" rel="stylesheet" href="../style/ie7.css" />
    <![endif]-->
</head>
<body class="mainBody">
    <form id="form1" runat="server">
        <div class="main">
            <div id="pageInfo" class="clearfix">
                <div class="title">
                    <label>
                        岗位日志汇总列表</label>
                </div>
            </div>
        </div>
        <div class="main">
            <p>
                教师编号：<asp:TextBox ID="PLogKeyWord_TeacherCode" runat="server"></asp:TextBox>
                教师姓名：<asp:TextBox ID="PLogKeyWord_TeacherName" runat="server"></asp:TextBox>
                <asp:Button ID="btSearch" runat="server" CssClass="button" Text="搜索" OnClick="btSearch_Click" />
            </p>
        </div>
        <div class="main">
            <asp:GridView ID="gvTotalPositionLogList" AutoGenerateColumns="false" AllowPaging="true"
                Width="100%" PageSize="15" DataKeyNames="ID" OnPageIndexChanging="GridViewTotalPLog_PageIndexChanging"
                OnRowDataBound="GridViewTotalPLog_RowDataBound" runat="server" CssClass="infoTable">
                <Columns>
                    <asp:BoundField DataField="PLog_TeacherCode" HeaderText="教师编号" />
                    <asp:BoundField DataField="PLog_TeacherName" HeaderText="教师名称" />
                    <asp:BoundField DataField="PLog_TotalRecordCount" HeaderText="记录总数" />
                    <asp:BoundField DataField="PLog_RecodeTime" DataFormatString="{0:yyyy-MM-dd}" HeaderText="最后记录时间" />
                    <%--<asp:BoundField DataField="PLog_IP" HeaderText="最后记录IP" />--%>
                </Columns>
                <HeaderStyle CssClass="header" />
                <EmptyDataTemplate>
                    没有数据！
                </EmptyDataTemplate>
            </asp:GridView>
        </div>
    </form>

    <script type="text/javascript" src="../js/jQuery/jquery-1.3.1.js"></script>

    <script type="text/javascript">
        $(function(){
            /* 修改样式 */
            $("#gvTotalPositionLogList > tbody > tr:even").not(":first").addClass("even");
            $("#gvTotalPositionLogList > tbody > tr").not(":first")
                .hover(
                    function(){
                        $(this).addClass("hover");
                    },
                    function(){
                        $(this).removeClass("hover");
                })
                .dblclick(function(e){
                    if ($(this).find("td:nth-child(2)").attr("className") == "none") {
                        var id = $(this).find("td:nth-child(2)").html();
                        openWin("Detail.aspx?id=" + id);
                    }
                });
            });
    </script>

</body>
</html>
